bui.ready(function(){

    var pageview = {};

    // 模块初始化定义
    pageview.init = function () {
        var uiSlide = bui.slide({
            id: "#slide",
            height: 550,
            width:500,
            autopage: true,
            data: [{
                image: "images/index/banner1.png",
                url: "http://www.baidu.com",
            }, {
                image: "images/index/banner2.png",
                url: "http://www.baidu.com",
            }, {
                image: "images/index/banner3.png",
                url: "http://www.baidu.com",
            }],
            loop: true,
        })

        var uiTab = bui.tab({
            id: "#uiTab",
            position:'left',
        });
        var uiSlide2 = bui.slide({
            id: "#slide2",
            width:'100rem',
            relative:false,
            autopage: false,
            autoheight:true,
            autoplay:false,
            visibleNum:'5',
            scrollNum:'2',
            data: [{
                image: "images/index/banner1.png",
                url: "http://www.baidu.com",
            }, {
                image: "images/index/banner2.png",
                url: "http://www.baidu.com",
            }, {
                image: "images/index/banner3.png",
                url: "http://www.baidu.com",
            },{
                image: "images/index/banner4.png",
                url: "http://www.baidu.com",
            }, {
                image: "images/index/banner5.png",
                url: "http://www.baidu.com",
            }, {
                image: "images/index/banner6.png",
                url: "http://www.baidu.com",
            },{
                image: "images/index/banner7.png",
                url: "http://www.baidu.com",
            }, {
                image: "images/index/banner8.png",
                url: "http://www.baidu.com",
            }, {
                image: "images/index/banner9.png",
                url: "http://www.baidu.com",
            }, {
                image: "images/index/banner10.png",
                url: "http://www.baidu.com",
            }],
            loop: true,
            onInited:function (){
                $('#slide2 li').addClass('active')
            }
        })


    }



    pageview.refresh = function(index){

    }

    // 初始化
    pageview.init();

    // 输出模块
    return pageview;

    
});
